package com.gougou.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.support.RequestContextUtils;

import javax.servlet.http.HttpServletRequest;
import java.util.Locale;

/**
 * Created by EX-ZHANZHENQIANG001 on 2018-04-25.
 */
@RequestMapping("/home")
@Controller
public class HomeController {


    @RequestMapping("/init")
    public String init(HttpServletRequest request) {
        Locale locale = RequestContextUtils.getLocale(request);
        System.out.println(locale.getLanguage());;
        return "/home";
    }




}
